import React, {Component} from 'react';
import {
    Text,
    View,
    StyleSheet,
    NativeModules,
    TouchableOpacity
} from 'react-native';

var TestUtil = NativeModules.TestUtil;

export default class IOSPlatformApi extends Component {
  render() {
    return(
      <View style={myStyle.container}>
        <TouchableOpacity onPress={()=>TestUtil.nativeLog}>
          <Text>点击调用iOS中的方法</Text>
        </TouchableOpacity>
      </View>
    )
  }
}

const myStyle = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
});
